﻿using System.ServiceProcess;

namespace Matrix.MaKaYunShang.RedService
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
            { 
                new RedEnvelopesService() 
            };
            ServiceBase.Run(ServicesToRun);
            //using (RedEnvelopesService redEnvelopesService = new RedEnvelopesService())
            //{
            //    object sender = null;
            //    System.Timers.ElapsedEventArgs e = null;
            //    redEnvelopesService.RedSend_Elapsed(null, null);
            //}
        }
    }
}
